package com.yan.supermangesystem.domain;

public class UserInfo {
    private String Id;
    private String account;
    private String cardType;
    private int points;
    private String statue;

    public UserInfo(String id, String account, String cardType, int points, String statue) {
        Id = id;
        this.account = account;
        this.cardType = cardType;
        this.points = points;
        this.statue = statue;
    }

    public UserInfo() {

    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public String getStatue() {
        return statue;
    }

    public void setStatue(String statue) {
        this.statue = statue;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserInfo userInfo = (UserInfo) o;

        if (points != userInfo.points) return false;
        if (Id != null ? !Id.equals(userInfo.Id) : userInfo.Id != null) return false;
        if (account != null ? !account.equals(userInfo.account) : userInfo.account != null) return false;
        if (cardType != null ? !cardType.equals(userInfo.cardType) : userInfo.cardType != null) return false;
        return statue != null ? statue.equals(userInfo.statue) : userInfo.statue == null;
    }

    @Override
    public int hashCode() {
        int result = Id != null ? Id.hashCode() : 0;
        result = 31 * result + (account != null ? account.hashCode() : 0);
        result = 31 * result + (cardType != null ? cardType.hashCode() : 0);
        result = 31 * result + points;
        result = 31 * result + (statue != null ? statue.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "Id='" + Id + '\'' +
                ", account='" + account + '\'' +
                ", cardType='" + cardType + '\'' +
                ", points=" + points +
                ", statue='" + statue + '\'' +
                '}';
    }
}
